using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Orders {
  /// <summary>
  /// 自提点标签
  /// </summary>
  [Table("SelfOrgTag")]
  public class SelfOrgTag : Entity<int> {
    /// <summary>
    /// 自提点标签类型
    /// </summary>
    [Key]
    [Required, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public override int Id { get; set; }

    /// <summary>
    /// 自提点标签名称
    /// </summary>
    [Required, MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    /// 排序
    /// </summary>
    [Required]
    public int SeqNo { get; set; }

    /// <summary>
    /// 创建时间
    /// </summary>
    [Required]
    public DateTime CreateTime { get; set; } = DateTime.Now;
  }
}
